<!--<include file="public+header">-->

<script type="text/javascript" src="<!--{:__PUBLIC__}-->/js/calendar/datepicker/WdatePicker.js"></script>
<!--{~$sCalendarLang=Core_Extend::calendar()}-->

<!--{script}-->
checkForm(SubmitFormCheckform);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current">编辑参观在线订单</a></article>
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
			<div class="module_content">
				<ul>
					<li>温馨提示：这里可以编辑参观在线订单数据。</li>
				</ul>
			</div>
		</article>

		<article class="module width_full">
			<header><h3 class="tabs_involved">编辑参观在线订单</h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Admin_Extend::base(array('controller'=>'jiajubuildorder'))}-->">参观在线订单列表</a></li>
				</ul>
			</header>
			<form action="" method="post" id="jiajubuildorderAdd" class="validate">
				<div class="module_content">
					<fieldset>
						<label for="jiajucompany_id">商家&nbsp;<span class="red" style="cursor:pointer;" onclick="$('#jiajucompany_id').val('');$('#jiajucompany_fullname').text('');">x</span></label>
						<input type="text" name="jiajucompany_id" id="jiajucompany_id" title="商家编号" value="<!--{:isset($oValue)?$oValue['jiajucompany_id']:''}-->" onkeyup="this.value = this.value.replace(/[^-0-9]/g, '');" class="left {required:true}" readonly="true" style="width:100px;"/>
						<input type="button" class="alt_btn" onclick="selectCompany('jiajucompany');" value="商家">&nbsp;
						<span id="jiajucompany_fullname" style="color:red;"><!--{:Core_Extend::getCompany(isset($oValue)?$oValue['jiajucompany_id']:0)}--></span>
						<div class="description input_tips">请选择商家！</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label>参观工地</label>
						<input class="input-xlarge" type="text" value="<!--{$arrBuild['jiajubuild_title']}-->" disabled>
					</fieldset>
					<fieldset>
						<label>房屋类型</label>
						<input class="input-xlarge" type="text" value="<!--{$arrBuild['space_name']}-->" disabled>
					</fieldset>
					<fieldset>
						<label>建筑面积</label>
						<input class="input-xlarge" type="text" value="<!--{$arrBuild['jiajubuild_realspace']}-->平米" disabled>
					</fieldset>
					<fieldset>
						<label>开工时间</label>
						<input class="input-xlarge" type="text" value="<!--{$arrBuild['jiajubuild_starttime']}-->" disabled>
					</fieldset>
					<fieldset>
						<label for="jiajubuildorder_time">预约商家服务时间<em style="color:red">*</em></label>
						<input class="input-xlarge {required:true}" id="jiajubuildorder_time" name="jiajubuildorder_time" type="text" value="<!--{:date('Y-m-d',$oValue['jiajubuildorder_time'])}-->" onclick="WdatePicker({el:'jiajubuildorder_time',skin:'ext',lang:'<!--{$sCalendarLang}-->',dateFmt:'yyyy-MM-dd'})" style="width:70px;">
						<div class="description input_tips">选择需要商家提供服务的时间。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajubuildorder_realname">真实姓名<em style="color:red">*</em></label>
						<input class="{required:true,maxlength:20}" id="jiajubuildorder_realname" name="jiajubuildorder_realname" type="text" value="<!--{$oValue['jiajubuildorder_realname']}-->">
						<div class="description input_tips">填写真实姓名（必须中文），才能享受投诉保障。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajubuildorder_mobile">手机号码<em style="color:red">*</em></label>
						<input class="{required:true,isMobile:true}" id="jiajubuildorder_mobile" name="jiajubuildorder_mobile" type="text" value="<!--{$oValue['jiajubuildorder_mobile']}-->">
						<div class="description input_tips">必须填写真实的手机号码，以便于商家联系你。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajubuildorder_qq">QQ<em style="color:red">*</em></label>
						<input class="{required:true,isQQ:true}" id="jiajubuildorder_qq" name="jiajubuildorder_qq" type="text" value="<!--{$oValue['jiajubuildorder_qq']}-->">
						<div class="description input_tips">必须填写真实的QQ号码，备用联系方式，以便于商家联系你。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajubuildorder_address">你的联系地址</label>
						<input class="{maxlength:150}" id="jiajubuildorder_address" name="jiajubuildorder_address" type="text" value="<!--{$oValue['jiajubuildorder_address']}-->">
						<div class="description input_tips"></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajubuildorder_remark">特别要求填写备注</label>
						<textarea class="{maxlength:250}" id="jiajubuildorder_remark" name="jiajubuildorder_remark" type="text" value="" style="width:500px;height:100px;"><!--{$oValue['jiajubuildorder_remark']}--></textarea>
						<div class="description input_tips"></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajubuildorder_status"><!--<lang package='Template'>-->状态<!--</lang>--></label>
						<select class="field" name="jiajubuildorder_status">
							<option value="1" <!--<if condition="!isset( $oValue ) || ( isset( $oValue ) && $oValue:jiajubuildorder_status==1)">-->selected<!--</if>-->>商家已确认</option>
							<option value="0" <!--<if condition="isset( $oValue ) && $oValue:jiajubuildorder_status==0">-->selected<!--</if>--> >等待确认</option>
							<option value="9" <!--<if condition="isset( $oValue ) && $oValue:jiajubuildorder_status==9">-->selected<!--</if>-->><!--<lang package='Template'>-->回收站<!--</lang>--></option>
							<option value="13" <!--<if condition="isset( $oValue ) && $oValue:jiajubuildorder_status==13">-->selected<!--</if>-->>订单关闭</option>
						</select>
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="hidden" name="ajax" value="1">
						<input type="hidden" name="value" id="value" value="<!--<if condition="isset( $_GET['value'] )">--><!--{$_GET['value']}--><!--</if>-->"/>
						<input type="submit" id="submit_button" value="" class="alt_btn">
						&nbsp;<input type="reset" value="<!--<lang package='Template'>-->重置<!--</lang>-->">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->